package org.scirp.ijmis.dao.common.impl;

import java.util.List;

import org.scirp.ijmis.dao.base.impl.BaseDAOImpl;
import org.scirp.ijmis.dao.common.ICountryDAO;
import org.scirp.ijmis.dao.common.IRoleTypeDAO;
import org.scirp.ijmis.po.common.Country;
import org.scirp.ijmis.po.common.RoleType;

public class RoleTypeDAOImpl extends BaseDAOImpl<RoleType> implements IRoleTypeDAO {

	private static final String className = RoleTypeDAOImpl.class.toString();

	public List<RoleType> selectAll() {

		String hql = "from RoleType order by pid desc";
		return super.ExecuteQuery(hql, className + "-->selectAll");
	}

	public RoleType selectById(Object id) {

		return (RoleType) super.selectById(id, className + "-->selectById");
	}

}
